﻿# rayzhang qss_theme
# 2023/12/05
project(qui-theme LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
#qt_standard_project_setup()


file(GLOB_RECURSE SOURCE_FILES *.hpp *.h *.cpp)
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Gui Qt5::Widgets)

# debug 输出带d的库
#set_target_properties(${PROJECT_NAME} PROPERTIES DEBUG_POSTFIX d)

# 预处理器/预定义宏
target_compile_definitions(${PROJECT_NAME} PRIVATE LIBQTHEME_API_EXPORT)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCE_FILES})
